I need some help with my JavaScript, i am trying to sorting XML data with the help of JavaScript, and i am successful doing the sorting part, but the output is returning some garbage object [object Object]
, which i don't want it to be printed out, so i need some help to get this thing fixed so that i get a proper output. I am attaching a live fiddle. All these needs to be done with JavaScript and not JQUERY.
I don't want [object Object],[object Object]
to be printed as output
Live Fiddle
bookstore
|
|__book
| |_____title
| |_____author
| |_____year
| |_____price
|
|__book
|
|__book
|
|__book
Thank You